from django.core.files.storage import Storage

class MyStorage(Storage):

    def _open(self, name, mode='rb'):
        pass

    def _save(self, name, content, max_length=None):
        pass

    def url(self, name):
        # name 就是图片的名字
        return 'http://qscvf5wsf.hn-bkt.clouddn.com/' + name